package dongnv.poweramp.activity;

import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.Menu;
import dongnv.poweramp.R;
import dongnv.poweramp.screen.ListFolderScreen;

public class ListFolderActivity extends Activity {
	public static final int CHOOSE_FOLDER = 100;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		HomeActivity.systemManager.setMessageHandlerListFolder(createMessageHandle());
		listFolderScreen = new ListFolderScreen(getApplicationContext(), 
				HomeActivity.systemManager.getListFolderAdapter());
		setContentView(listFolderScreen.getView());
	}
	
	public Handler createMessageHandle() {

		Handler messageHandler = new Handler() {
			public void handleMessage(Message msg) {
				switch (msg.what) {
				case CHOOSE_FOLDER:
					
					break;
				default:
					break;
				}
			}
		};
		return messageHandler;
	}
	
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

	private ListFolderScreen listFolderScreen;
}
